Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: access module #77

Merged
merged 11 commits into from
Nov 10, 2024
Merged

feat: access module #77

merged 11 commits into from
Nov 10, 2024

Conversation

xorsal
Copy link
Contributor

@xorsal xorsal commented Nov 6, 2024

🤖 Linear

Closes OPT-515

Copy link

linear bot commented Nov 7, 2024

@xorsal xorsal mentioned this pull request Nov 7, 2024
Comment on lines 8 to 9
abstract contract AccessControllerModule is AccessController, Module {
abstract contract ModuleAccessController is CommonAccessController, Module {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was doubting whether ModuleAccessController should inherit from Module, as it is not the module itself, and had a breaking idea: why not migrate it to prophet-core and make Module inherit from it, such that:

  • Oracle is OracleAccessController, while
  • Module is ModuleAccessController and
  • MyAccessModule is Module?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel the same about ModuleAccessController inheriting from Module. The need to extend Module comes from the necessity of accessing the ORACLE immutable variable, which is actually define in Validator, from which Module extends.

I like the suggestion, but I'd add it in a future, smaller PR to unblock the current chain of PRs.

@gas1cent gas1cent merged commit 0541655 into feat/access-control Nov 10, 2024
5 checks passed
@gas1cent gas1cent deleted the feat/access-module branch November 10, 2024 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants